﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/master.Master" AutoEventWireup="false"
    CodeBehind="default.aspx.cs" Inherits="JobSeek._default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">


</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:DropDownList ID="ddlClassification" runat="server" DataSourceID="EntityDataSource"
                DataTextField="name" DataValueField="classification_id">
            </asp:DropDownList>
            <asp:EntityDataSource ID="EntityDataSource" runat="server" ConnectionString="name=job_seekerEntities"
                DefaultContainerName="job_seekerEntities" EnableFlattening="False" EntitySetName="Classifications">
            </asp:EntityDataSource>
            <asp:DropDownList ID="ddlLocation" runat="server" AutoPostBack="True">
                <asp:ListItem Value="0" Selected="False">All Australia</asp:ListItem>
                <asp:ListItem Selected="False" disabled="true" style="font-weight: bold; color: Black;">Major Cities</asp:ListItem>
                <asp:ListItem Selected="False" Value="2">Sydney</asp:ListItem>
                <asp:ListItem Selected="False" Value="1">Brisbane</asp:ListItem>
                <asp:ListItem Selected="False" Value="3">Melbourne</asp:ListItem>
                <asp:ListItem Selected="False" Value="4">Perth</asp:ListItem>
                <asp:ListItem Selected="False" Value="14">Darwin</asp:ListItem>
                <asp:ListItem Selected="False" Value="12">Horbart</asp:ListItem>
                <asp:ListItem Selected="False" Value="5">Canberra</asp:ListItem>
                <asp:ListItem Value="6">Adelaide</asp:ListItem>
                <asp:ListItem Value="13">Gold Coast</asp:ListItem>
                <asp:ListItem Selected="False" disabled="true" style="font-weight: bold; color: Black;">Regional</asp:ListItem>
                <asp:ListItem Value="7">QLD</asp:ListItem>
                <asp:ListItem Value="8">NSW</asp:ListItem>
                <asp:ListItem Value="9">VIC</asp:ListItem>
                <asp:ListItem Value="10">WA</asp:ListItem>
                <asp:ListItem Value="11">SA</asp:ListItem>
                <asp:ListItem Value="15">TAS</asp:ListItem>
                <asp:ListItem Value="16">NT</asp:ListItem>
                <asp:ListItem Value="17">ACT</asp:ListItem>
            </asp:DropDownList>
            <asp:DropDownList ID="ddlSubLocation" runat="server" DataSourceID="SubLocationDataSource"
                DataTextField="sub_location_name" DataValueField="sub_loc_id">
            </asp:DropDownList>
            <asp:EntityDataSource ID="SubLocationDataSource" runat="server" ConnectionString="name=job_seekerEntities"
                DefaultContainerName="job_seekerEntities" EnableFlattening="False" EntitySetName="Sub_location"
                Select="it.sub_loc_id, it.sub_location_name" Where="it.location_id == @location_id">
                <WhereParameters>
                    <asp:ControlParameter ControlID="ddlLocation" PropertyName="SelectedValue" DbType="Int32"
                        Name="location_id" />
                </WhereParameters>
            </asp:EntityDataSource>
            <asp:DropDownList ID="ddlSalaryFrom" runat="server">
            </asp:DropDownList>
            <asp:DropDownList ID="ddlSalaryTo" runat="server">
            </asp:DropDownList>
             <asp:TextBox ID="tbxSearchInput" runat="server"></asp:TextBox> 
        </ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="ddlLocation" EventName="SelectedIndexChanged" />
        </Triggers>
    </asp:UpdatePanel>


   

 
</asp:Content>
